import React from 'react';
import Button from '@material-ui/core/Button'
import PropTypes from 'prop-types'

/**
 * 边框按钮
 */
class ContainedButton extends React.Component {
    render() {
        const { text, classes,  ...restProps } = this.props
        return (
            <Button {...restProps} variant="outlined"  className={classes.button}>{text}</Button>
        )
    }
}

ContainedButton.propType = {
    text: PropTypes.string,
    disabled: PropTypes.bool,
    disableRipple: PropTypes.bool,
    onClick: PropTypes.func
}

export default ContainedButton